<?php

namespace app\api\model;


class Image extends BaseModel
{
    protected $hidden = ['update_time', 'delete_time', 'id', 'from'];

    // 获取器 获取image表里url字段的值，并拼装成真正的url
    public function getUrlAttr($url, $data) {
        return $this->prefixImgUrl($url, $data);
    }
}
